/**
 * 地区树选择器样式，与web端保持一致
 */

.province-city-selector-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
}

.province-city-selector-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease-out;
}

.province-city-selector {
  position: relative;
  width: 90%;
  max-width: 540px;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  animation: slideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.province-city-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fff;
}

.province-city-selector-header .title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* 适配的Button组件 */
.cancel-button {
  color: #666;
  font-size: 14px;
  padding: 4px 12px;
}

.confirm-button {
  color: #1989fa;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
}

.confirm-button[disabled] {
  opacity: 0.5;
  color: #999;
}

/* 树形结构容器样式 */
.region-tree-container {
  background-color: #fafafa;
  padding: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

.region-tree {
  background-color: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 选择项样式 */
.region-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.region-item:hover {
  background-color: #f5f5f5;
}

.region-item.selected {
  background-color: #e6f7ff;
}

.region-name {
  font-size: 15px;
  color: #333;
}

.region-arrow {
  font-size: 12px;
  color: #999;
}

/* 选中的选择项文本样式 */
.region-item.selected .region-name {
  color: #1890ff;
  font-weight: 500;
}

/* 自定义间距和对齐样式 */
.py-2 {
  padding-top: 8px;
  padding-bottom: 8px;
}

.px-16 {
  padding-left: 64px;
}

.px-12 {
  padding-left: 48px;
}

.px-8 {
  padding-left: 32px;
}

.px-4 {
  padding-left: 16px;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 响应式设计 */
@media screen and (min-width: 768px) {
  .province-city-selector {
    width: 540px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 响应式设计 */
@media screen and (min-width: 768px) {
  .province-city-selector {
    max-width: 500px;
  }
}